<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>仓鼠网上投票系统HVPMS</title>
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link type="text/css" rel="stylesheet" href="css/register.jsp.css" />
<script src="js/jquery-1.4.4.min.js" type="text/javascript"></script>
<script src="js/register.jsp.js" type="text/javascript"></script>
</head>
<body>
<div id="num3">
	<img src="images/banner1.png">
</div>
<div id="num2">
<h2>新用户注册</h2>
	<span>
	<%
		request.setCharacterEncoding("UTF-8");
		String message = (String)request.getAttribute("message");
		String message_vn = (String)request.getAttribute("message_verifyname");
		if(message!=null){
			out.println("["+message+"]");
		}else{
			out.println();
		}
		if(message_vn!=null){
			out.println("["+message_vn+"]");
		}else{
			out.println();
		}
	%>
	</span>
	<hr class="top_hr">	
</div>
<div id="num1">
<form action="Register" method="POST" id="registerForm">
<table>
<tr>
<th>账号</th>
<td>
<input type="text" name="username" id="userName"/>
<a href="javascript:verifyUN()">[检查账号]</a>
<span id="span_userName"></span>
</td>
</tr>
<tr><td colspan="2"><hr class="cut_hr"></td></tr>
<tr>
<th>密码</th>
<td>
<input type="password" name="userpassword" id="first"/>
<span id="span_first"></span>
</td>
</tr>
<tr>
<th>确认密码</th>
<td>
<input type="password" id="second"/>
<span id="span_second"></span>
</td>
</tr>
<tr><td colspan="2"><hr class="cut_hr"></td></tr>
<tr>
<th>邮箱</th>
<td>
<input type="text" name="email" id="e_mail"/>
<span id="span_e_mail"></span>
</td>
</tr>
<tr><td colspan="2"><hr class="cut_hr"></td></tr>
<tr>
<th>提示问题</th>
<td>
	<select name="gp_ques" id="gpQues">
	<option value="" selected="selected">--请选择密码查询问题--</option>
	<option value="1">我的宠物名字？</option>
    <option value="2">我最好的朋友是谁？</option>
    <option value="3">我最喜爱的颜色？</option>
    <option value="4">我最喜爱的电影？</option>
    <option value="5">我最喜爱的影星？</option>
    <option value="6">我最喜爱的歌曲？</option>
    <option value="7">我最喜爱的食物？</option>
    <option value="8">我最大的爱好？</option>
    <option value="9">我中学校名全称是什么？</option>
    <option value="10">我的座右铭是？</option>
    <option value="11">我最喜欢的小说的名字？</option>
    <option value="12">我最喜欢的卡通人物名字？</option>
    <option value="13">我母亲或父亲的生日？</option>
    <option value="14">我最欣赏的一位名人的名字？</option>
    <option value="15">我最喜欢的运动队全称？</option>
    <option value="16">我最喜欢的一句影视台词？</option>
	</select>
	<span id="span_gpQues"></span>
</td>
</tr>
<tr>
<th>答案</th>
<td>
<input type="text" name="gp_answ" id="gpAnsw"/>
<span id="span_gpAnsw"></span>
</td>
</tr>
<tr><td colspan="2"><hr class="cut_hr"></td></tr>
<tr>
<th>验证码</th>
<td>
<input type="text" id="checkcode" size="6" name="verifycode"/>
<img src="util/identifycode.jsp" id="checkimg"/>
<a href="javascript:changeVCode()">换一张</a>
<span id="span_checkcode">
<%
	String message_checkcode = (String)request.getAttribute("message_checkcode");
	if(message_checkcode!=null){
		out.println("["+message_checkcode+"]");
	}else{
		out.println("");
	}
%>
</span>
</td>
</tr>
<tr><td colspan="2"><hr class="cut_hr"></td></tr>
<tr>
<td colspan="2" align="center">
<input type="button" value="注册" onclick="validateToSubmit()"/>&nbsp;&nbsp;<input type="reset" value="重置"/>
</td>
</tr>
</table>
</form>
</div>
</body>
</html>